#include "cube.h"

// see cube.h
void Cube::area(void) {
    double area = 6 * pow((double)this->l, 2);
    cout << "\nArea of a square is 6 * (" << this->l << ")^2 = " << int(area);
}

// see cube.h
void Cube::perimeter(void) {
    cout << "\nPerimeter is not defined for a cube.";
}

// see cube.h
void Cube::volume(void) {
    double volume = pow((double)this->l, 3);
    cout << "\nVolume of a square is (" << this->l << ")^3 = " << int(volume);
}